package com.bwie.home.backstage.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * 
 * @author sy
 * @email sunlightcs@gmail.com
 * @date 2021-09-10 09:46:41
 */
@Data
@TableName("tb_buylog")
public class BuylogEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 成交记录ID
	 */
	@TableId
	private Integer buylogId;
	/**
	 * 用户ID
	 */
	private Integer userId;
	/**
	 * 	户型ID
	 */
	private Integer typeId;
	/**
	 * 房源ID
	 */
	private Integer housingId;
	/**
	 * 成交时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date buytime;
	/**
	 * 成交户型
	 */
	@TableField(exist = false)
	private String hname;
	/**
	 * 所属小区
	 */
	@TableField(exist = false)
	private String cname;
	/**
	 * 面积（m²）
	 */
	@TableField(exist = false)
	private Integer area;
	/**
	 * 成交金额
	 */
	@TableField(exist = false)
	private BigDecimal money;


}
